package com.itxiuyixiu.tools.utils.back;

/**
 * @author 黄磊
 * @date 2020/4/21
 */
public class ReturnVo<T> {
    private ReturnState state;
    private T message;

    public enum ReturnState {SUCCESS, FAILURE}

    public ReturnVo() {
    }

    public ReturnVo(ReturnState state, T message) {
        this.state = state;
        this.message = message;
    }

    public ReturnState getState() {
        return state;
    }

    public void setState(ReturnState state) {
        this.state = state;
    }

    public T getMessage() {
        return message;
    }

    public void setMessage(T message) {
        this.message = message;
    }
}
